{% extends "base.html" %}
{% block title %}
老照片 - Tags{% if tag %} - {{tag.name}}{% endif %}
{% endblock %}

{% block main %}
<div class="row-fluid">
      <div class="offset1">
		<p class="greentitle">
			<a href="/">首页</a>/<a href="/tags/">Tags</a>/
			{% if tag %}<a href="/tags/{{tag.id}}">{{tag.name}}</a>/{% endif %}
		</p>
		<br/>
</div>
</div>
        <div class="row-fluid">
	<div class="offset1 span10">
	<ul class="thumbnails">
	{% for o in object_list %}
		<li class="thumbnail" style="width:320px;height:240px;">
		          <div>
		    <a href="/photos/{{o.id}}/">
		    <img src="{{o.get_photo_url}}" alt="{{o.title}}"></a>
		          <br>
		          <a>浏览({{o.view_count}})</a> | <a>回复({{o.rep_count}})</a>| <a>{{o.txt_tags}}</a>
		          </div>
		</li>		
	{% endfor %}	
	</ul>

	</div>
        </div>

<div class="row-fluid">
    <div class="span4 offset4">
<div id="pagination" >

    <form method="get" name="pform" action="">
        <div class="input-append">
	<a>{{page}}/{{pages}} 页</a>
	<input name="page" size="4" maxlength="255" value="1" id="pg" type="text">
	<button class="btn" onclick="document.pform.submit(); return false;">GO</button>
</div>

{% if has_previous %}
	<a href="/tags/{% if tag %}{{tag.id}}/{% endif %}?page=1">首页</a>
	<a href="/tags/{% if tag %}{{tag.id}}/{% endif %}?page={{ previous }}">上一页</a>
{% endif %} {% if has_next %}
	<a href="/tags/{% if tag %}{{tag.id}}/{% endif %}?page={{ next }}">下一页</a>
	<a href="/tags/{% if tag %}{{tag.id}}/{% endif %}?page={{pages}}">尾页</a>	
{% endif %}


    </form>
    </div>
</div>
{% endblock %}

{% block layoutright %}
<br/>
<div class="homeBox" id="tag_box">
<h3>热点标签</h3>
{% for t in side_tags %}
<a href="/tags/{{t.id}}/" style="font-size: {{t.em}}em;">{{t.name}}</a>&nbsp;
{% endfor %}
</div>



{% endblock %}

